home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 7.1 KB | 242 lines | [TEXT/MPS ] |
- ;
- ; File: Appearance.a
- ;
- ; Contains: Appearance Manager Interfaces.
- ;
- ; Version: Technology: System 8
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__APPEARANCE__') = 'UNDEFINED' THEN
- __APPEARANCE__ SET 1
-
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF FOR_SYSTEM8_COOPERATIVE THEN
- ; Appearance Manager Error Codes (will move to Errors.i) -4200 through -4249
-
- appearanceBadPatternIndexErr EQU -4201 ; pattern index invalid
- ;
- ; * System Pattern (PixPat) Indices for GetThemePixPat and SetThemePen
- ;
-
- kThemeGrowIconBorderPattern EQU 1 ; Windows
- kThemeRootMenuBackgroundPattern EQU 2 ; Menus
- kThemeSelectedRootMenuBackgroundPattern EQU 3
- kThemeDisabledRootMenuBackgroundPattern EQU 4
- kThemeMenuBackgroundPattern EQU 5
- kThemeSelectedMenuBackgroundPattern EQU 6
- kThemeDisabledMenuBackgroundPattern EQU 7
- kThemeActivePushButtonBackgroundPattern EQU 8 ; Controls
- kThemePressedPushButtonBackgroundPattern EQU 9
- kThemeInactivePushButtonBackgroundPattern EQU 10
- kThemeActiveOffIconButtonBackgroundPattern EQU 11
- kThemeActiveOnIconButtonBackgroundPattern EQU 12
- kThemePressedOffIconButtonBackgroundPattern EQU 13
- kThemePressedOnIconButtonBackgroundPattern EQU 14
- kThemeMixedIconButtonBackgroundPattern EQU 15
- kThemeInactiveIconButtonBackgroundPattern EQU 16
- kThemeActivePopupButtonBackgroundPattern EQU 17
- kThemePressedPopupButtonBackgroundPattern EQU 18
- kThemeInactivePopupButtonBackgroundPattern EQU 19
- kThemeActiveDialogBackgroundPattern EQU 20 ; Dialogs
- kThemeInactiveDialogBackgroundPattern EQU 21
- kThemeActiveAlertBackgroundPattern EQU 22
- kThemeInactiveAlertBackgroundPattern EQU 23
- kThemeActiveModelessDialogBackgroundPattern EQU 24
- kThemeInactiveModelessDialogBackgroundPattern EQU 25
- kThemeObjectFocusPattern EQU 26
- kThemeActiveWindowHeaderBackgroundPattern EQU 27 ; Primitives
- kThemeInactiveWindowHeaderBackgroundPattern EQU 28
- kThemeFinderListViewSortColumnPattern EQU 29 ; Finder
- kThemeFinderListViewBackgroundPattern EQU 30
- kThemeFinderListViewSeparatorLinePattern EQU 31
- kThemeFinderWindowBackgroundPattern EQU 32
- kThemeUtilityWindowBackgroundPattern EQU 33 ; Miscellaneous
- kThemeStatusBarBackgroundPattern EQU 34
- kThemeInactiveStatusBarBackgroundPattern EQU 35
- kThemeDragHilitePattern EQU 36 ; Drag Mgr
- ;
- ; * System Text and other RGBColor Indices for GetThemeColor and SetThemeFore/BackColor.
- ;
-
- kThemeActiveDocumentWindowTitleColor EQU 1 ; Windows
- kThemeInactiveDocumentWindowTitleColor EQU 2
- kThemeActiveMovableModalWindowTitleColor EQU 3
- kThemeInactiveMovableModalWindowTitleColor EQU 4
- kThemeActiveFloatingWindowTitleColor EQU 5
- kThemeInactiveFloatingWindowTitleColor EQU 6
- kThemeActiveDrawerWindowTitleColor EQU 7
- kThemeInactiveDrawerWindowTitleColor EQU 8
- kThemeRootMenuTextColor EQU 9 ; Menus
- kThemeSelectedRootMenuTextColor EQU 10
- kThemeDisabledRootMenuTextColor EQU 11
- kThemeMenuTextColor EQU 12
- kThemeSelectedMenuTextColor EQU 13
- kThemeDisabledMenuTextColor EQU 14
- kThemeActivePushButtonTextColor EQU 15 ; Controls
- kThemePressedPushButtonTextColor EQU 16
- kThemeInactivePushButtonTextColor EQU 17
- kThemeActivePopupLabelTextColor EQU 18
- kThemeInactivePopupLabelTextColor EQU 19
- kThemeActivePopupArrowColor EQU 20
- kThemePressedPopupArrowColor EQU 21
- kThemeInactivePopupArrowColor EQU 22
- kThemeActiveDialogTextColor EQU 23 ; Dialogs
- kThemeInactiveDialogTextColor EQU 24
- kThemeActiveAlertTextColor EQU 25
- kThemeInactiveAlertTextColor EQU 26
- kThemeActiveModelessDialogTextColor EQU 27
- kThemeInactiveModelessDialogTextColor EQU 28
- kThemeActiveWindowHeaderTextColor EQU 29 ; Primitives
- kThemeInactiveWindowHeaderTextColor EQU 30
- kThemeIconLabelTextColor EQU 31 ; Finder
- kThemeIconLabelBackgroundColor EQU 32
- kThemeFinderListViewTextColor EQU 33
- kThemeAppleGuideCoachmarkColor EQU 34 ; Miscellaneous
- kThemeChasingArrowsColor EQU 35
- kThemeStatusBarTextColor EQU 36
- kThemeInactiveStatusBarTextColor EQU 37
- ;
- ; * System Appearance Information
- ;
- ;
- ; System Patterns
- ; *
- ; * WARNING: Patterns returned by GetThemePixPat are shared by the system and other
- ; * running applications. These patterns are updated by the system automatically
- ; * whenever the theme changes. They are system-owned and must not be disposed.
- ; * Never dispose a PixPatHandle obtained from GetThemePixPat or the system will crash.
- ;
- ;
- ; pascal OSStatus GetThemePixPat(SInt16 patternIndex, PixPatHandle *pixPat)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION GetThemePixPat
- ENDIF
-
- ;
- ; pascal OSStatus SetThemePen(SInt16 patternIndex)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION SetThemePen
- ENDIF
-
- ; System colors
- ;
- ; pascal OSStatus SetThemeForeColor(SInt16 foreColorIndex)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION SetThemeForeColor
- ENDIF
-
- ;
- ; pascal OSStatus SetThemeBackColor(SInt16 backColorIndex)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION SetThemeBackColor
- ENDIF
-
- ;
- ; pascal OSStatus GetThemeColor(SInt16 colorIndex, RGBColor *color)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION GetThemeColor
- ENDIF
-
- ;
- ; * Appearance Drawing Primitives
- ;
- ;
- ; pascal OSStatus DrawThemePrimaryGroup(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemePrimaryGroup
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeSecondaryGroup(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeSecondaryGroup
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeSeparator(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeSeparator
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeWindowHeader(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeWindowHeader
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemePlacard(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemePlacard
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeDialogFrame(const Rect *rect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeDialogFrame
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeTextBoxFrame(const Rect *textBoxRect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeTextBoxFrame
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeTextBoxFocus(const Rect *textBoxRect, Boolean hasFocus)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeTextBoxFocus
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeListBoxFrame(const Rect *listBoxRect, Boolean isActive)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeListBoxFrame
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeListBoxFocus(const Rect *listBoxRect, Boolean hasFocus)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeListBoxFocus
- ENDIF
-
- ;
- ; pascal OSStatus DrawThemeGenericFocus(const Rect *focusRect, Boolean hasFocus)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DrawThemeGenericFocus
- ENDIF
-
- ENDIF
- ENDIF ; __APPEARANCE__
-
-